/**
 * 项目名：	Rumba Plan
 * 
 * 版权所有(C)，上海海鼎信息工程股份有限公司，2006，所有权利保留。
 * 
 * 文件名：	BFieldAssign.java
 * 模块说明：	
 * 修改历史：
 * 2006-8-20 - lxm - 创建。
 */
package com.hd123.rumba.user.biz;

import com.hd123.rumba.cartridge.biz.SCartFunctionView;

/**
 * 字段权限赋值 | 业务层
 * <p>
 * 
 * 描述指定字段权限的赋值情况。
 * 
 * @author lxm
 * 
 */
public class BFieldPermAssign extends BBasePermAssign {

  /** 构件包功能视图 */
  private SCartFunctionView cartFunctionView;

  /** 权限提供者 */
  private BPermissionProvider provider;

  /** 字段标题 */
  private String fieldCaption;

  /** 对应的只读权限 */
  private SPermission readonlyPermission;

  /** 对应的读写权限 */
  private SPermission writablePermission;

  /** 值 */
  private Integer value = VALUE_VALUE_INVISIBLE;
  public static final Integer VALUE_VALUE_INVISIBLE = new Integer(0);
  public static final Integer VALUE_VALUE_READONLY = new Integer(1);
  public static final Integer VALUE_VALUE_WRITABLE = new Integer(2);

  public SCartFunctionView getCartFunctionView() {
    return cartFunctionView;
  }

  public void setCartFunctionView(SCartFunctionView cartFunctionView) {
    this.cartFunctionView = cartFunctionView;
  }

  public String getFieldCaption() {
    return fieldCaption;
  }

  public void setFieldCaption(String fieldCaption) {
    this.fieldCaption = fieldCaption;
  }

  public BPermissionProvider getProvider() {
    return provider;
  }

  public void setProvider(BPermissionProvider provider) {
    this.provider = provider;
  }

  public Integer getValue() {
    return value;
  }

  public void setValue(Integer value) {
    this.value = value;
  }

  public SPermission getReadonlyPermission() {
    return readonlyPermission;
  }

  public void setReadonlyPermission(SPermission readonlyPermission) {
    this.readonlyPermission = readonlyPermission;
  }

  public SPermission getWritablePermission() {
    return writablePermission;
  }

  public void setWritablePermission(SPermission writablePermission) {
    this.writablePermission = writablePermission;
  }
}
